<?php 
/**
* filter class sq1AbbrevInput
* type: input
* return: mixed
*/

class filterExtFormInput extends bookstoreInputFilter{

	
	function __construct(){
		$this->type = 'input';
		$this->name = 'ExtFormInput';
	
	}//end constructor

	/**
	* look for specific words and replace them
	*/
	function filter($return_type,&$input){
		//var_dump($input);
		/*
		if(is_array($input) && $input['offset'] === (int)0){ //using extended form, but submitted a quick search
			//var_dump(extformfilter1);
			//remove default form value on simple search so
			//that we search for ''; yielding help document
			if(strpos( $input['simple'], 'Quick Search')){
				//var_dump(extformfilter2);
				$input['simple'] = '';
			}elseif(!isset($input['simple'])){
				$input['simple'] = '';
			}//end if default input value
		}elseif(is_array($input) && $input['offset'] == 1 ){
		//	var_dump(extformfilter3);
				$input['simple'] = '&nbsp;&nbsp;-- Quick Search --';
		}//end if array
		//var_dump($input);
		//var_dump(extformfilter4);
		*/
		return $input;
		
	}//end filter
	
}//end filterSq2AbbrvInput class

?>
